package com.mingtu.jgspatrol.holder;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;

public class BaseViewBindingHolder<T extends ViewBinding> extends RecyclerView.ViewHolder {
    T binding;

    public BaseViewBindingHolder(@NonNull T viewbinding) {
        super(viewbinding.getRoot());
        binding = viewbinding;
    }

    public T getBinding() {
        return binding;
    }
}
